package cn.hxzy.common;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum WaybillType {


    waybillStatus_02(101, "代装车"),
    waybillStatus_03(102, "代卸车"),
    waybillStatus_04(103, "已卸车"),
    waybillStatus_05(104, "已收款"),
    waybillStatus_06(105, "已取消");


    private Integer waybillStatus;
    private String waybillStatusName;

    public static String getWaybillStatusValue(int index){
        for (WaybillStatus value : WaybillStatus.values()) {
            if (value.getWaybillStatus() == index) {
                return value.getWaybillStatusName();
            }
        }
        return null;
    }
}
